enhance garmin route write for devices using 16 member icon set. (#1298)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Fri, 19 Jul 2024 13:11:59 +0000 (07:11 -0600)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 13:11:59 +0000 (07:11 -0600)
garmin.cc

index 9ffb56d5ce1902aca368b3ac15d5723fb1e3426c..cea5e6c4d1e52d3c79201c73d9857cfbf3b73a23 100644 (file)
--- a/garmin.cc
+++ b/garmin.cc
@@ -937,7 +937,11 @@ GarminFormat::route_waypt_pr(const Waypoint* wpt)
 
   rte->lon = wpt->longitude;
   rte->lat = wpt->latitude;
-  rte->smbl = gt_find_icon_number_from_desc(wpt->icon_descr, PCX);
+  if (gps_rte_type == 103) {
+    rte->smbl = d103_icon_number_from_symbol(wpt->icon_descr);
+  } else {
+    rte->smbl = gt_find_icon_number_from_desc(wpt->icon_descr, PCX);
+  }
 
   // map class so unit doesn't duplicate routepoints as a waypoint.
   rte->wpt_class = 0x80;